package com.home.fansea.test;

/**
 * @Projectname: MiniXYIot
 * @Filename: ObjectTest1
 * @Author: FANSEA
 * @Data:2024/6/6 14:29
 */
public class ObjectTest1 {
    public static void main(String[] args) {
        //class文件只会加载一次
        Class<? extends ObjectTest> aClass = new ObjectTest(1).getClass();
        Class<? extends ObjectTest> bClass = new ObjectTest(2).getClass();
        System.out.println("bClass = " + bClass);
        System.out.println(aClass.equals(bClass));
        System.out.println(aClass == bClass);

    }
}
